/*  
 * Copyright (C) 2011 Marta Spodymek
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *  
 */
package org.prometheuscode.web.feedback.file;

import java.util.List;

/**
 * Class describes the strategy for given files.
 * 
 * @author marta
 * 
 */
public class FileStrategyInfo {

    /*
     * Strategy type.
     */
    private String type;

    private List<FileInfo> files;

    /*
     * private IFileHandlerStrategy data.
     */
    private Object data;

    public FileStrategyInfo(String type, List<FileInfo> files, Object data) {
	this.type = type;
	this.files = files;
	this.data = data;
    }

    /**
     * Get strategy type.
     * 
     * @return
     */
    public String getType() {
	return this.type;
    }

    /**
     * Set strategy type.
     * 
     * @param type
     */
    public void setType(String type) {
	this.type = type;
    }

    /**
     * Get all files binded to that strategy.
     * 
     * @return
     */
    public List<FileInfo> getFiles() {
	return this.files;
    }

    /**
     * Set all files binded to that strategy.
     * 
     * @param files
     */
    public void setFiles(List<FileInfo> files) {
	this.files = files;
    }

    /**
     * Get private data of the strategy handler.
     * 
     * @return
     */
    public Object getData() {
	return this.data;
    }

    /**
     * Set private data of the strategy handler.
     * 
     */
    public void setData(Object data) {
	this.data = data;
    }
}
